<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    <div class="h"><a href="{:U('add')}" class="btn btn-info">添加数据</a></div>
     <div class="table_"><table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
    <td align="center">ID</td>
    <td align="center">标题</td>
    <td align="center">内容</td>
    <td align="center">类型</td>
    <td align="center">操作</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" /></td>
    <td>{$vo.keyword}</td>
    <td>
    
    
    <if condition="$vo['MsgType'] == 'text'">{$vo.content}</if>
    <if condition="$vo['MsgType'] == 'image'"><img src="{:getThumbPath($vo['img_url'])}" width="100"></if>
    
    <volist name="vo['content']" id="nvo">

     
     
            <div class="viewBoxCss media last"> <a href="{$nvo.link}" target="_blank" class="pull-left viewBoxCss"><img width="60" height="60" src="{:getThumbPath($nvo['img_url'])}" class="media-object viewBoxCss" alt="" style="display: block;"></a>
        <div class="media-body viewBoxCss" modulesid="24381">
          <h4 class="media-heading viewBoxCss" modulesid="24381"> <a class="Atitle viewBoxCss" target="_blank" href="{$nvo.link}">{$nvo.title}</a> </h4>
                    <span class="ListContent viewBoxCss" modulesid="24381">{$nvo.description}</span>
                  </div>
      </div>
            
      
            



    </volist>
    </td>
    <td align="center"><if condition="$vo['MsgType'] == 'text'">文字</if>
    <if condition="$vo['MsgType'] == 'news'">
    
    
    <if condition="$vo['MsgType'] == 'news'">图文</if>
    


    
    
    
    
    
    
    </if>
    <if condition="$vo['MsgType'] == 'image'">图片</if>
    
    
    </td>
    <td align="center"><a href="{:U('edit',array('id'=>$vo['id']))}">编辑</a> | <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');">删除</a></td>
  </tr>
</volist></table>
 <div class="pages">
        <div class="controlList fl"><a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();"><i class="glyphicon glyphicon-check"></i> 全选/反选</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();"><i class="glyphicon glyphicon-unchecked"></i> 全不选</a> <a class="btn btn-danger btn-sm" href="javascript:void(0);" onclick="delall();"><i class="glyphicon glyphicon-trash"></i> 删除选中</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="update_sort('id','sort','','{:U('dosort')}');"><i class="glyphicon glyphicon-refresh"></i> 更新排序</a> 
        
        
        
        </div>
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>

</div>

  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />